﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.ObjectModel;

namespace NaireSystem.ViewModels
{
    public class ViewModelNaireCreate : ViewModelBase
    {
        private ViewModelNaireQts _NaireQts = new ViewModelNaireQts();
        public ViewModelNaireQts NaireQts { get => _NaireQts; set => Set("NaireQts", ref _NaireQts, value); }

        private NaireEditTestModel _EditTest = new NaireEditTestModel();
        public NaireEditTestModel EditTest { get => _EditTest; set => Set("EditTest", ref _EditTest, value); }




        public ViewModelNaireCreate()
        {
            for (int i = 0; i < 12; i++)
            {
                ListMonth.Add(i + 1);
                if (DateTime.Now.Month == i + 1)
                {
                    SelectMonth = i + 1;
                }
            }
            for (int i = 2020; i < 2050; i++)
            {
                ListYear.Add(i);
                if (DateTime.Now.Year == i + 1)
                {
                    SelectYear = i + 1;
                }
            }
        }
        private int _SelectYear;
        public int SelectYear { get => _SelectYear; set => Set("SelectYear", ref _SelectYear, value); }

        private int _SelectMonth;
        public int SelectMonth { get => _SelectMonth; set => Set("SelectMonth", ref _SelectMonth, value); }

        private ObservableCollection<int> _ListYear = new ObservableCollection<int>();
        public ObservableCollection<int> ListYear { get { return _ListYear; } set { Set("ListYear", ref _ListYear, value); } }

        private ObservableCollection<int> _ListMonth = new ObservableCollection<int>();
        public ObservableCollection<int> ListMonth { get { return _ListMonth; } set { Set("ListMonth", ref _ListMonth, value); } }

        private ObservableCollection<NaireRecordModel> _ListNaireRecord = new ObservableCollection<NaireRecordModel>();
        public ObservableCollection<NaireRecordModel> ListNaireRecord { get { return _ListNaireRecord; } set { Set("ListNaireRecord", ref _ListNaireRecord, value); } }

        private int _OfficeTotalCount;
        public int OfficeTotalCount { get => _OfficeTotalCount; set => Set("OfficeTotalCount", ref _OfficeTotalCount, value); }

        private int _OfficeCount;
        public int OfficeCount { get => _OfficeCount; set => Set("OfficeCount", ref _OfficeCount, value); }



        private ObservableCollection<DeptModel> _ListOffice = new ObservableCollection<DeptModel>();
        public ObservableCollection<DeptModel> ListOffice { get { return _ListOffice; } set { Set("ListOffice", ref _ListOffice, value); } }


        private ObservableCollection<QtModel> _ListQt = new ObservableCollection<QtModel>();
        public ObservableCollection<QtModel> ListQt { get { return _ListQt; } set { Set("ListQt", ref _ListQt, value); } }


    }




}
